#define _CRT_SECURE_NO_WARNINGS 1
#include "DoubleList.h"
int main()
{
	ListNode* head = ListCreate();
	ListPushBack(head, 1);
	ListPushBack(head, 2);
	ListPushBack(head, 3);
	ListPushBack(head, 4);
	//ListPopBack(head);
	//ListPopBack(head);
	ListPushFront(head, 1);
	ListPushFront(head, 2);
	ListPushFront(head, 3);
	ListPushFront(head, 4);
	//ListPopFront(head);
	//ListPopFront(head);
	//ListPopFront(head);
	ListNode* node1 = ListFind(head, 4);
	ListInsert(node1, 8);
	ListNode* node2 = ListFind(head, 2);
	ListErase(node2);
	//printf("\n%d ", node1->_data);
	ListPrint(head);
	ListDestory(head);

	return 0;
}